Skip to content

Invoke fuzzywuzzy's processor before matching#1045

Merged
Den4200 merged 3 commits into
masterfrom
bug/980/fuzzy-processing
Jul 15, 2020
Merged

Invoke fuzzywuzzy's processor before matching#1045
Den4200 merged 3 commits into
masterfrom
bug/980/fuzzy-processing

Conversation

@kosayoda
Copy link
Copy Markdown
Contributor

Fixes #980

Trying to match a string with only non-alphanumeric characters results in a warning by fuzzywuzzy.
Processing the string before matching lets us avoid the warning, which uses the root logger and thus isn't supressible.

Trying to match a string with only non-alphanumeric characters
results in a warning by fuzzywuzzy.
Processing the string before matching lets us avoid the warning, which
which uses the root logger and thus isn't supressible.
@kosayoda kosayoda requested a review from a team as a code owner July 14, 2020 05:01
@kosayoda kosayoda requested review from SebastiaanZ and aeros and removed request for a team July 14, 2020 05:01
@ghost ghost added the needs 2 approvals label Jul 14, 2020
Comment thread bot/cogs/help.py Outdated
@ghost ghost added s: waiting for author Waiting for author to address a review or respond to a comment and removed needs 2 approvals labels Jul 15, 2020
Fixes a regression where the string to be matched was not processed
beforehand.
@ghost ghost added needs 2 approvals and removed s: waiting for author Waiting for author to address a review or respond to a comment labels Jul 15, 2020
Copy link
Copy Markdown
Contributor

@MarkKoz MarkKoz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

rock solid

@MarkKoz MarkKoz added a: information Related to information commands: (doc, help, information, reddit, site, tags) p: 3 - low Low Priority t: bug Something isn't working labels Jul 15, 2020
@ghost ghost removed the needs 1 approval label Jul 15, 2020
@Den4200 Den4200 merged commit 730c059 into master Jul 15, 2020
@Den4200 Den4200 deleted the bug/980/fuzzy-processing branch July 15, 2020 23:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

a: information Related to information commands: (doc, help, information, reddit, site, tags) p: 3 - low Low Priority t: bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Providing a single apostrophe-like character behind !help raises warning

3 participants